<%@ include file="/common/taglibs.jsp"%>

<title><fmt:message key="menuDetail.title"/></title>
<content tag="heading"><fmt:message key="menuDetail.heading"/></content>

<html:form action="/saveMenu" styleId="menuForm" onsubmit="return validateMenuForm(this)">
<ul>

    <li>
        <appfuse:label styleClass="desc" key="menuForm.action"/>
        <html:errors property="action"/>
        <html:text property="action" styleId="action" styleClass="text medium"/>

    </li>

    <li>
        <appfuse:label styleClass="desc" key="menuForm.altImage"/>
        <html:errors property="altImage"/>
        <html:text property="altImage" styleId="altImage" styleClass="text medium"/>

    </li>

    <li>
        <appfuse:label styleClass="desc" key="menuForm.description"/>
        <html:errors property="description"/>
        <html:text property="description" styleId="description" styleClass="text medium"/>

    </li>

    <li>
        <appfuse:label styleClass="desc" key="menuForm.forward"/>
        <html:errors property="forward"/>
        <html:text property="forward" styleId="forward" styleClass="text medium"/>

    </li>

    <li>
        <appfuse:label styleClass="desc" key="menuForm.height"/>
        <html:errors property="height"/>
        <html:text property="height" styleId="height" styleClass="text medium"/>

    </li>

<html:hidden property="id"/>

    <li>
        <appfuse:label styleClass="desc" key="menuForm.image"/>
        <html:errors property="image"/>
        <html:text property="image" styleId="image" styleClass="text medium"/>

    </li>

    <li>
        <appfuse:label styleClass="desc" key="menuForm.name"/>
        <html:errors property="name"/>
        <html:text property="name" styleId="name" styleClass="text medium"/>

    </li>

    <li>
        <appfuse:label styleClass="desc" key="menuForm.onClick"/>
        <html:errors property="onClick"/>
        <html:text property="onClick" styleId="onClick" styleClass="text medium"/>

    </li>

    <li>
        <appfuse:label styleClass="desc" key="menuForm.onMouseOut"/>
        <html:errors property="onMouseOut"/>
        <html:text property="onMouseOut" styleId="onMouseOut" styleClass="text medium"/>

    </li>

    <li>
        <appfuse:label styleClass="desc" key="menuForm.onMouseOver"/>
        <html:errors property="onMouseOver"/>
        <html:text property="onMouseOver" styleId="onMouseOver" styleClass="text medium"/>

    </li>

    <li>
        <appfuse:label styleClass="desc" key="menuForm.page"/>
        <html:errors property="page"/>
        <html:text property="page" styleId="page" styleClass="text medium"/>

    </li>

    <li>
        <appfuse:label styleClass="desc" key="menuForm.parentName"/>
        <html:errors property="parentName"/>
        <html:text property="parentName" styleId="parentName" styleClass="text medium"/>

    </li>

    <li>
        <appfuse:label styleClass="desc" key="menuForm.roles"/>
        <html:errors property="roles"/>
        <html:text property="roles" styleId="roles" styleClass="text medium"/>

    </li>

    <li>
        <appfuse:label styleClass="desc" key="menuForm.target"/>
        <html:errors property="target"/>
        <html:text property="target" styleId="target" styleClass="text medium"/>

    </li>

    <li>
        <appfuse:label styleClass="desc" key="menuForm.title"/>
        <html:errors property="title"/>
        <html:text property="title" styleId="title" styleClass="text medium"/>

    </li>

    <li>
        <appfuse:label styleClass="desc" key="menuForm.tooltip"/>
        <html:errors property="tooltip"/>
        <html:text property="tooltip" styleId="tooltip" styleClass="text medium"/>

    </li>

    <li>
        <appfuse:label styleClass="desc" key="menuForm.width"/>
        <html:errors property="width"/>
        <html:text property="width" styleId="width" styleClass="text medium"/>

    </li>

    <li>
        <appfuse:label styleClass="desc" key="menuForm.location"/>
        <html:errors property="location"/>
        <html:text property="location" styleId="location" styleClass="text medium"/>

    </li>

    <li class="buttonBar bottom">
        <html:submit styleClass="button" property="method.save" onclick="bCancel=false">
            <fmt:message key="button.save"/>
        </html:submit>

        <html:submit styleClass="button" property="method.delete" onclick="bCancel=true; return confirmDelete('Menu')">
            <fmt:message key="button.delete"/>
        </html:submit>

        <html:cancel styleClass="button" onclick="bCancel=true">
            <fmt:message key="button.cancel"/>
        </html:cancel>
    </li>
</ul>
</html:form>

<script type="text/javascript">
    Form.focusFirstElement($("name"));
</script>

<html:javascript formName="menuForm" cdata="false"
	dynamicJavascript="true" staticJavascript="false" />
<script type="text/javascript"
	src="<c:url value="/scripts/validator.jsp"/>"></script>
